package com.eedi.framework.template.controller.sys.vo;

import com.eedi.framework.common.enums.YesOrNoEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.HashSet;
import java.util.Set;

@Schema(description = "系统界面 - 部门的数据权限 Response DTO")
@Data
public class SysTemplateDeptDataPermissionRespDTO {

    @Schema(description = "是否可查看全部数据", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private YesOrNoEnum all;

    @Schema(description = "是否可查看自己的数据", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private YesOrNoEnum self;

    @Schema(description = "可查看的部门编号数组", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1, 3]")
    private Set<String> deptIds;

    public SysTemplateDeptDataPermissionRespDTO() {
        this.all = YesOrNoEnum.NO;
        this.self = YesOrNoEnum.NO;
        this.deptIds = new HashSet<>();
    }

}
